<template>
  <div class="main">
    <div :class="classObject"></div>
    <button @click="change">点击</button>
  </div>
</template>
<script>
  import $ from 'jquery';
  import axios from 'axios';
  export default {
    name:"HelloMc",
    data(){
      return {
        isA:true,
        isB:false
      }
    },
    computed:{
      classObject() {
        return{
          active:this.isA,
          active2:this.isB
        }
      }
    },
    methods:{
      change() {
        this.isA=!this.isA;
        this.isB=!this.isB
      }
    }
  }
</script>
